home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group00a.txt / 000061_icon-group-sender _Wed Apr 12 09:24:02 2000.msg < prev    next >
Internet Message Format  |  2001-01-03  |  2KB

  1. Return-Path: <icon-group-sender>
  2. Received: (from root@localhost)
  3.     by baskerville.CS.Arizona.EDU (8.9.1a/8.9.1) id JAA05468
  4.     for icon-group-addresses; Wed, 12 Apr 2000 09:23:55 -0700 (MST)
  5. Message-Id: <200004121623.JAA05468@baskerville.CS.Arizona.EDU>
  6. From: eddie@holyrood.ed.ac.uk (Eddie Corns)
  7. X-Newsgroups: comp.lang.icon
  8. Subject: changes to proc() ??
  9. Date: 12 Apr 2000 11:27:24 GMT
  10. X-Trace: scotsman.ed.ac.uk 955538844 3603 129.215.16.14 (12 Apr 2000 11:27:24 GMT)
  11. X-Complaints-To: usenet@scotsman.ed.ac.uk
  12. X-Newsreader: NN version 6.5.0 #2 (NOV)
  13. To: icon-group@optima.CS.Arizona.EDU
  14. Errors-To: icon-group-errors@optima.CS.Arizona.EDU
  15. Status: RO
  16.  
  17. Hello world,
  18.  
  19. Have there been any changes to the proc() procedure lately.  I'm writing a tiny
  20. little interpreter and wanted to make use of calling my procedures by
  21. evaluating the commands read from the input stream.  So f'rinstance I have:
  22.  
  23. procedure show()
  24.         every writes(!sort(stack[-1])," ")
  25.     write("")
  26. end
  27.  
  28. then later on:
  29.  
  30.  if line == !ops then
  31.    x := proc(line)
  32.    x()
  33.  
  34. (except with {} - I must stop my newsreader from using vi).
  35.  
  36. Anyway, my reading of the book suggests this should work and indeed on an old
  37. version of the interpreter I have lying around it does work but not on newer
  38. ones.  The version I tested on linux which fails is 9.3.2, I think the Solaris
  39. version which faile is 9.0.? and the Solaris version which worked is unknown.
  40.  
  41. I couldn't find any reference in the docs except an old (9.0) version documenting
  42. the addition of 0 as the second arg.
  43.  
  44. Thanks,
  45. Eddie
  46.  
  47.